package Vista;
import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import java.awt.CardLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.ListModel;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import javax.swing.SwingUtilities;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ViewModificarLinea extends javax.swing.JFrame {
	private JLabel jLNombrePlan;
	private JTextField jTNombrePlan;
	private JComboBox jComboBTipoPlan;
	private JRadioButton radAdicional;
	private JButton jButton5;
	private JButton jButton3;
	private JList lstPaquetes;
	private JLabel lblPaquetesAdicionales;
	private JPanel jPanel2;
	private JButton jButton2;
	private JButton jButton1;
	private JRadioButton radTitular;
	private JLabel lblTipoLinea;
	private JPanel jPanel1;
	private JButton jBCancelar;
	private JButton jBguardar;
	private JLabel jLabel1;
	public static ViewModificarLinea instancia;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ViewModificarLinea inst = new ViewModificarLinea();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	private ViewModificarLinea() {
		super();
		initGUI();
	}
	
	public static ViewModificarLinea getInstancia() 
	{
		if (instancia== null)
			instancia = new ViewModificarLinea();
		return instancia;
	}
		
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setEnabled(false);
			this.setAlwaysOnTop(true);
			this.setResizable(false);
			this.setName("frmAltaLinea");
			this.setTitle("Alta de Linea");
			{
				jLNombrePlan = new JLabel();
				getContentPane().add(jLNombrePlan);
				jLNombrePlan.setText("Numero Linea:");
				jLNombrePlan.setBounds(12, 12, 97, 14);
				jLNombrePlan.setName("lblNumeroLinea");
			}
			{
				jTNombrePlan = new JTextField();
				getContentPane().add(jTNombrePlan);
				jTNombrePlan.setBounds(12, 25, 202, 21);
				jTNombrePlan.setName("txtNumeroLinea");
			}
			{
				ComboBoxModel jComboBTipoPlanModel = 
					new DefaultComboBoxModel(
							new String[] {"" , "BASE", "PREPAGO", "ADICIONAL" });
				jComboBTipoPlan = new JComboBox();
				getContentPane().add(jComboBTipoPlan);
				jComboBTipoPlan.setModel(jComboBTipoPlanModel);
				jComboBTipoPlan.setBounds(12, 72, 358, 21);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Elija un Plan:");
				jLabel1.setBounds(12, 58, 97, 14);
				jLabel1.setName("lblPlan:");
			}
			{
				jBguardar = new JButton();
				getContentPane().add(jBguardar);
				jBguardar.setText("GUARDAR");
				jBguardar.setBounds(172, 268, 102, 21);
			}
			{
				jBCancelar = new JButton();
				getContentPane().add(jBCancelar);
				jBCancelar.setText("CANCELAR");
				jBCancelar.setBounds(274, 268, 102, 21);
			}
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(12, 126, 358, 36);
				jPanel1.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
				jPanel1.setLayout(null);
				{
					radTitular = new JRadioButton();
					AnchorLayout radTitularLayout = new AnchorLayout();
					radTitular.setLayout(radTitularLayout);
					jPanel1.add(radTitular);
					radTitular.setText("Titular");
					radTitular.setBounds(13, 1, 83, 34);
				}
				{
					radAdicional = new JRadioButton();
					jPanel1.add(radAdicional);
					radAdicional.setText("Adicional");
					radAdicional.setName("radAdicional");
					radAdicional.setBounds(79, 1, 175, 34);
				}
			}
			{
				lblTipoLinea = new JLabel();
				getContentPane().add(lblTipoLinea);
				lblTipoLinea.setText("Seleccione el tipo de Linea:");
				lblTipoLinea.setBounds(12, 107, 129, 14);
				lblTipoLinea.setVerifyInputWhenFocusTarget(false);
			}
			{
				jButton1 = new JButton();
				getContentPane().add(jButton1);
				jButton1.setText("GUARDAR");
				jButton1.setBounds(261, 25, 102, 21);
				jButton1.setVisible(false);
			}
			{
				jButton2 = new JButton();
				getContentPane().add(jButton2);
				jButton2.setText("BUSCAR");
				jButton2.setBounds(255, 23, 102, 21);
				jButton2.setName("btnBuscar");
			}
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2);
		//		jPanel2.setLayout(jPanel2Layout);
				jPanel2.setBounds(12, 188, 358, 69);
				jPanel2.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				jPanel2.setLayout(null);
				{
					ListModel lstPaquetesModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					lstPaquetes = new JList();
					jPanel2.add(lstPaquetes);
					lstPaquetes.setModel(lstPaquetesModel);
					lstPaquetes.setBounds(1, 1, 300, 67);
				}
				{
					jButton3 = new JButton();
					jPanel2.add(jButton3);
					jButton3.setText("Agregar");
					jButton3.setBounds(303, 3, 53, 21);
				}
				{
					jButton5 = new JButton();
					jPanel2.add(jButton5);
					jButton5.setText("Eliminar");
					jButton5.setBounds(303, 25, 53, 21);
					jButton5.setName("btnEliminar");
				}
			}
			{
				lblPaquetesAdicionales = new JLabel();
				getContentPane().add(lblPaquetesAdicionales);
				lblPaquetesAdicionales.setText("Paquetes Adicionales");
				lblPaquetesAdicionales.setBounds(12, 174, 101, 14);
			}
			pack();
			this.setSize(392, 320);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
